package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.TeaDao;
import com.ischoolbar.programmer.dao.home.View_LogDao;
import com.ischoolbar.programmer.entity.home.View_Log;
import com.ischoolbar.programmer.service.home.View_LogService;
@Service
public class View_LogServiceImpl implements View_LogService{

	@Autowired
	private View_LogDao view_LogDao;

	@Override
	public List<View_Log> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return view_LogDao.findList(queryMap);
	}

	@Override
	public int add(View_Log view_Log) {
		// TODO Auto-generated method stub
		return view_LogDao.add(view_Log);
	}

	@Override
	public int deleteByProductId(Long productId) {
		// TODO Auto-generated method stub
		return view_LogDao.deleteByProductId(productId);
	}

	@Override
	public int deleteByAccountId(Long accountId) {
		// TODO Auto-generated method stub
		return view_LogDao.deleteByAccountId(accountId);
	}
	
}
